/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyectocompimusica;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Eddy
 */
public class ProyectoCompiMusica {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        ScannerPro sp;
        ParserPro pp=new ParserPro();
        File arc=new File("/home/eddytrex/Desktop/Fairy Fountain.CNGA");
        try {
            sp=new ScannerPro(new FileReader(arc));           
            
            pp.setScanner(sp);
            
            try {
                pp.parse();
                
                System.out.println(pp.action_obj.res+"-----");
                System.out.println(".."+pp.action_obj.res.CargarTS());
                System.out.println(".."+pp.action_obj.res.Traduccion());
            } catch (Exception ex) {
                Logger.getLogger(ProyectoCompiMusica.class.getName()).log(Level.SEVERE, null, ex);
                javax.swing.JOptionPane.showMessageDialog(null, "Error"+ex.toString());
            }
          
         
        } catch (FileNotFoundException ex) {
            Logger.getLogger(ProyectoCompiMusica.class.getName()).log(Level.SEVERE, null, ex);
            javax.swing.JOptionPane.showMessageDialog(null, "Error"+ex.toString());
        }
        
        
        
        
    }
}
